{% extends "base.html" %}
{# Copyright The IETF Trust 2019, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load django_bootstrap5 %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static 'ietf/css/datepicker.css' %}">
{% endblock %}
{% block title %}Issue ballot for {{ doc }}?{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Issue ballot
        <br>
        <small class="text-body-secondary">{{ doc }}</small>
    </h1>
    <p class="mt-3">
        {{ question }}
    </p>
    <form method="post">
        {% csrf_token %}
        {# curly percent bootstrap_form approval_text_form curly percent #}
        <div class="mb-3">
            <label for="duedate" class="form-label">Due date for this ballot:</label>
            <input id="duedate" class="form-control" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" placeholder="{{ fillerdate }}" name="duedate" data-date-orientation="auto bottom">
        </div>
        <button type="submit" class="btn btn-primary" name="irsg_button" value="Yes">Issue ballot</button>
        <button type="submit" class="btn btn-secondary float-end" name="irsg_button" value="No">Back</button>
    </form>
{% endblock %}
{% block js %}
    <script src="{% static 'ietf/js/datepicker.js' %}"></script>
{% endblock %}